import scholarIndex, microsoftAcademic

#Google Scholar (via Scholar Index) is easy: call getFullPage with Faculty name and school name, third flag determines whether or not the query includes the school name
#result = scholarIndex.getFullPage("Michele Weigle", "Old Dominion University", False)

#Microsoft Academic is a bit complicated 

#Step 1, get the general results for the author and university
html = microsoftAcademic.generalSearch("Michele Weigle", "Old Dominion University")
#This returns a list of authors (amongst other things), with the "suggested" author in bold

#Step 2, get the suggested author link id
id = microsoftAcademic.getSuggestedAuthorId(html)

#Step 3, follow the suggested author link, to the author page
result = microsoftAcademic.getAuthorPage(id)

print result
